package ModelLayer;

public class Product
{
    private int id;
    private String name;
    private Supplier supplier;
    private float purchasePrice;
    private float salesPrice;
    private float rentPrice;
    private String countryOfOrigin;
    private int minStock;
    
    //empty constructor
    public Product() {}

   
    public Product(int id, String name, Supplier supplier, float purchasePrice,
    		float salesPrice, float rentPrice, String countryOfOrigin, int minStock)
    {
        this.id=id;
    	this.supplier = supplier;
        this.name = name;
        this.purchasePrice = purchasePrice;
        this.salesPrice = salesPrice;
        this.rentPrice = rentPrice;
        this.countryOfOrigin = countryOfOrigin;
        this.minStock = minStock;
    }
    
    public Product(int id)
    {this.id = id;}

    public int getId()
    {
        return id;
    }
    public void setId(int id)
    {
        this.id = id;
    }

    public Supplier getSupplier()
    {
        return supplier;
    }
    public void setSupplier(Supplier supplier)
    {
        this.supplier = supplier;
    }
    
    public String getCountry()
    {
        return countryOfOrigin;
    }
    public void setCountry(String countryOfOrigin)
    {
        this.countryOfOrigin = countryOfOrigin;
    }

    public int getMinStock()
    {
        return minStock;
    }
    public void setMinStock(int minStock)
    {
        this.minStock = minStock;
    }

    public String getName()
    {
        return name;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public float getPurchasePrice()
    {
        return purchasePrice;
    }
    public void setPurchasePrice(float d)
    {
        this.purchasePrice = d;
    }

    public float getRentPrice()
    {
        return rentPrice;
    }
    public void setRentPrice(float rentPrice)
    {
        this.rentPrice = rentPrice;
    }

    public float getSalesPrice()
    {
        return salesPrice;
    }
    public void setSalesPrice(float salesPrice)
    {
        this.salesPrice = salesPrice;
    }
}